﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeFile="QYBMXX.aspx.cs"
    Inherits="GRZX_WSXY_QYBMXX" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <base target="_self" />
    <link href="../../Style/GRZX/Master.css" rel="stylesheet" type="text/css" />
    <link href="../../Scripts/jquery-easyui-1.3.1/themes/default/easyui.css" rel="stylesheet"
        type="text/css" />
    <link href="../../Scripts/jquery-easyui-1.3.1/themes/icon.css" rel="stylesheet" type="text/css" />
    
</head>
<head>
    <form id="form1" runat="server">
    <div id="Contant">
        <a href='/'>
            <img alt="我的消息" style="margin-bottom: -3px" src="/images/GRZX/u1.gif" width="16px"
                height="16px" />首页</a>>><a href='/GRZX/'>个人中心</a>>> 常用个人报名信息管理<br />
        <table cellpadding="0px" cellspacing="0px" class="BarTable">
            <tr>
                <th>
                    常用企业报名信息管理&nbsp;<cite>您已经保存:</cite>
                    <asp:Label ID="lblCount" runat="server" Text="0" CssClass="spantext colf1"></asp:Label><cite>企业报名信息</cite>&nbsp;<cite>最多添加:</cite><span
                        class="spantext colf1">10</span><cite>个</cite>&nbsp;<a id="add" href="#" style='font-size: 12px'
                            class="easyui-linkbutton" data-options="iconCls:'icon-add'">点击新增</a>
                </th>
            </tr>
            <tr>
                <td class="td1">
                    <div id="SearchDIV" style='text-align: right;'>
                        <asp:DropDownList ID="drpSheng" runat="server">
                        </asp:DropDownList>
                        <select id="drpCity" name="drpCity">
                            <option value='0'>请选择</option>
                        </select>
                        <select id="drpRegin" name="drpRegin">
                            <option value='0'>请选择</option>
                        </select>
                        <input id="txtKey" class="GRZXInput" name="txtKey" type="text" />
                        &nbsp;<asp:Button ID="btnSearch" CssClass="skls" runat="server" Text="搜索" OnClick="btnSearch_Click" />
                    </div>
                </td>
            </tr>
        </table>
        <div class="tip" style="margin-top: 10px">
            <cite>提醒：</cite>您最多只能添加10个常用企业报名信息 *为必填
        </div>
        <div style="padding-top: 20px;">
            <asp:ListView ID="lstWDXX" runat="server" DataKeyNames="ID" OnItemDeleting="lstWDXX_ItemDeleting"
                OnItemCommand="lstWDXX_ItemCommand" OnItemDataBound="lstWDXX_ItemDataBound">
                <layouttemplate>
                <table cellpadding="0px" cellspacing="0px" class="rc1_tab1tit" style="width: 100%;">
                    <tr>
                        <th title='企业名称'>
                            企业
                        </th>
                        <th>
                            学员
                        </th>
                        <th>
                            性别
                        </th>
                        <th title='所在地区'>
                            地区
                        </th>
                        <th title='街道地址'>
                            地址
                        </th>
                        <th title='电话/手机'>
                            电话
                        </th>
                        <th title='在线联系方式'>
                            在线
                        </th>
                        <th>
                            Email
                        </th>
                        <th style='width: 80px'>
                            操作
                        </th>
                    </tr>
                    <asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder>
                </table>
            </layouttemplate>
                <itemtemplate>
                <tr>
                    <td class="CompanyName">
                        <%#Eval("CompanyName")%>
                    </td>
                    <td class="UserName">
                        <%#Eval("UserName")%>
                    </td>
                    <td class="Sex">
                        <%#Enum.GetName(typeof(CYBMXX.typeSex), Eval("Sex"))%>
                    </td>
                    <td class="Region">
                        <%#GetShengShiQuName(Eval("ProvinceID"), Eval("CityID"), Eval("ReginID"))%>
                        <div style='display: none'>
                            <%#Eval("ProvinceID")%>_<%#Eval("CityID")%>_<%#Eval("ReginID")%></div>
                    </td>
                    <td class="Address">
                        <%#Eval("Address")%>
                    </td>
                    <td class="Phone">
                        <%#Eval("Phone")??"暂无"%>/<%#Eval("Telphone") ?? "暂无"%>
                    </td>
                    <td class="Contact">
                        <%#Eval("Contact")%>
                    </td>
                    <td class="Email">
                        <%#Eval("Email")%>
                    </td>
                    <td style="line-height: 20px">
                        <a class="EditPSDZ" id='<%#Eval("ID")%>' href='#'>修改</a>
                        <asp:LinkButton ID="lbtnDel" CommandName="Delete" runat="server">删除</asp:LinkButton>
                        <asp:Label ID="lblIsRank" runat="server" Text='<%#Eval("IsRank")%>'></asp:Label><br />
                        <asp:LinkButton ID="lbtnSetRank" CssClass="SetRank" CommandArgument='<%#Eval("ID")%>'
                            CommandName="SetRank" runat="server" Style="display: none">设为默认</asp:LinkButton>
                    </td>
                </tr>
            </itemtemplate>
                <emptydatatemplate>
                <cite id="UserNameNote" class="note"><span>&nbsp;</span>暂无数据</cite>
            </emptydatatemplate>
            </asp:ListView>
        </div>
        <div id="AddPSDZDIV" style="width: 500px; height: 410px; padding: 5px; display: none">
            <div data-options="region:'center',border:false" style="padding: 10px; background: #fff;
                border: 1px solid #ccc; line-height: 20px;">
                <table cellpadding="0px" cellspacing="0px" style="width: 100%;">
                    <tr>
                        <td style='width: 100px; height: 30px; line-height: 30px'>
                            <label for="txtAddCompanyName">
                                *企业名称：</label>
                        </td>
                        <td style='line-height: 30px'>
                            <input id="txtAddCompanyName" maxlength="20" class="GRZXInput" style="width: 80px"
                                type="text" />
                            <cite id="AddCompanyNameNote" class="note"><span>&nbsp;</span>请输入企业名称</cite>
                        </td>
                    </tr>
                    <tr>
                        <td style='width: 100px; height: 30px; line-height: 30px'>
                            <label for="txtAddUserName">
                                *学员姓名：</label>
                        </td>
                        <td style='line-height: 30px'>
                            <input id="txtAddUserName" maxlength="20" class="GRZXInput" style="width: 80px" type="text" />
                            <cite id="UserNameNote" class="note"><span>&nbsp;</span>请输入学员姓名</cite>
                        </td>
                    </tr>
                    <tr>
                        <td style='width: 100px; height: 30px; line-height: 30px'>
                            <label for="<%=rblSex.ClientID%>">
                                *学员性别：</label>
                        </td>
                        <td style='line-height: 30px'>
                            <asp:RadioButtonList ID="rblSex" runat="server" RepeatDirection="Horizontal">
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td style='width: 100px; height: 30px; line-height: 30px'>
                            <label for="txtPhone" class="spannormal">
                                *手机：</label>
                        </td>
                        <td style='line-height: 30px'>
                            <input id="txtPhone" maxlength="20" class="GRZXInput" style="width: 100px" type="text" />
                        </td>
                    </tr>
                    <tr>
                        <td style='width: 100px; height: 30px; line-height: 30px'>
                            &nbsp;
                        </td>
                        <td style='height: 30px; line-height: 30px'>
                            <cite id="SJNote" class="note"><span>&nbsp;</span>格式：15387915550-目前只支持国内手机</cite>
                        </td>
                    </tr>
                    <tr>
                        <td style='width: 100px; height: 30px; line-height: 30px'>
                            <label for="txtTelphone" class="spannormal">
                                固定电话：</label>
                        </td>
                        <td style='line-height: 30px'>
                            <input id="txtTelphone" maxlength="20" class="GRZXInput" style="width: 100px" type="text" />
                            &nbsp;<cite class="note" id="GDDHNote"><span>&nbsp;</span>格式：0791-65565597</cite>
                        </td>
                    </tr>
                    <tr>
                        <td style='width: 100px; height: 30px; line-height: 30px'>
                            &nbsp;
                        </td>
                        <td style='line-height: 30px'>
                            <cite class="note"><span>&nbsp;</span>&nbsp;手机或者固定电话请必填一项,以便联系到您</cite>
                        </td>
                    </tr>
                    <tr>
                        <td style='width: 100px; height: 30px; line-height: 30px'>
                            <label for="<%=drpAddProv.ClientID%>" class="spannormal">
                                *所在地区：</label>
                        </td>
                        <td style='line-height: 30px'>
                            <asp:DropDownList ID="drpAddProv" Width="80px" runat="server">
                            </asp:DropDownList>
                            <asp:DropDownList ID="drpAddCity" Width="80px" runat="server">
                            </asp:DropDownList>
                            <asp:DropDownList ID="drpAddRegion" Width="80px" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style='width: 100px; height: 30px; line-height: 30px'>
                            <label for="txtAddress" class="spannormal">
                                *详细地址：</label>
                        </td>
                        <td style='line-height: 30px'>
                            <input id="txtAddress" maxlength="50" class="GRZXInput" style="width: 250px" type="text" />
                        </td>
                    </tr>
                    <tr>
                        <td style='width: 100px; height: 30px; line-height: 30px'>
                            &nbsp;
                        </td>
                        <td style='line-height: 30px'>
                            <cite class="note" id="AddressNote"><span>&nbsp;</span>请输入详细地址</cite>
                        </td>
                    </tr>
                    <tr>
                        <td style='width: 100px; height: 30px; line-height: 30px'>
                            <label for="txtCode" class="spannormal">
                                *E-Mail：</label>
                        </td>
                        <td style='line-height: 30px'>
                            <input id="txtCode" maxlength="30" class="GRZXInput" style="width: 100px" type="text" />
                            <cite id="CodeNote" class="note"><span>&nbsp;</span>请输入邮箱</cite>
                        </td>
                    </tr>
                    <tr>
                        <td style='width: 100px; height: 30px; line-height: 30px'>
                            <label class="spannormal">
                                *在线联系方式：</label>
                        </td>
                        <td id="ZXLXFSTD" style="line-height: 28px">
                            <div class="ZXLXFS">
                                <select>
                                    <option value="QQ" selected="selected">QQ</option>
                                    <option value="MSN">MSN</option>
                                </select>
                                <input maxlength="10" class="GRZXInput" style="width: 80px;" type="text" />
                                <cite class="note"><span>&nbsp;</span>请输入在线联系方式</cite></div>
                            <span id="AddZXFS" class="colf2" style="display: block; width: 50; cursor: pointer">
                                继续添加</span>
                        </td>
                    </tr>
                    <tr>
                        <td style='width: 100px; height: 30px; line-height: 30px'>
                            <label for="cbIsRank" class="spannormal">
                                设为默认：</label>
                        </td>
                        <td style='line-height: 30px'>
                            <input id="cbIsRank" checked="checked" type="checkbox" />
                        </td>
                    </tr>
                </table>
            </div>
            <div style="text-align: right; padding: 5px 0;">
                <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)"
                    id="AddPSDZ">提交</a> <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'"
                        href="javascript:void(0)" onclick="javascript:$('#AddPSDZDIV').window('close')">
                        取消</a>
            </div>
        </div>
    </div>
    <input id="hidOpeateID" value='' type="hidden" />
    </form>
</head>
<script src="../../Scripts/Common/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery-easyui-1.3.1/jquery.easyui.min.js" type="text/javascript"></script>
<script src="../../Scripts/Common/cls_validator.js" type="text/javascript"></script>
<script src="../../Scripts/GRZX/WSXY/BMXX.js" type="text/javascript"></script>
</html>
